package com.manage.project.biz.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.manage.project.biz.mapper.BizXiaofangMapper;
import com.manage.project.biz.domain.BizXiaofang;
import com.manage.project.biz.service.IBizXiaofangService;

/**
 * 消防设施 Service业务层处理
 * 
 * @author liang
 */
@Service
public class BizXiaofangServiceImpl implements IBizXiaofangService 
{
    @Autowired
    private BizXiaofangMapper bizXiaofangMapper;

    /**
     * 查询消防设施
     * 
     * @param field1 消防设施主键
     * @return 消防设施
     */
    @Override
    public BizXiaofang selectBizXiaofangByField1(String field1)
    {
        return bizXiaofangMapper.selectBizXiaofangByField1(field1);
    }

    /**
     * 查询消防设施列表
     * 
     * @param bizXiaofang 消防设施
     * @return 消防设施
     */
    @Override
    public List<BizXiaofang> selectBizXiaofangList(BizXiaofang bizXiaofang)
    {
        return bizXiaofangMapper.selectBizXiaofangList(bizXiaofang);
    }

    /**
     * 新增消防设施
     * 
     * @param bizXiaofang 消防设施
     * @return 结果
     */
    @Override
    public int insertBizXiaofang(BizXiaofang bizXiaofang)
    {
        return bizXiaofangMapper.insertBizXiaofang(bizXiaofang);
    }

    /**
     * 修改消防设施
     * 
     * @param bizXiaofang 消防设施
     * @return 结果
     */
    @Override
    public int updateBizXiaofang(BizXiaofang bizXiaofang)
    {
        return bizXiaofangMapper.updateBizXiaofang(bizXiaofang);
    }

    /**
     * 批量删除消防设施
     * 
     * @param field1s 需要删除的消防设施主键
     * @return 结果
     */
    @Override
    public int deleteBizXiaofangByField1s(String[] field1s)
    {
        return bizXiaofangMapper.deleteBizXiaofangByField1s(field1s);
    }

    /**
     * 删除消防设施信息
     * 
     * @param field1 消防设施主键
     * @return 结果
     */
    @Override
    public int deleteBizXiaofangByField1(String field1)
    {
        return bizXiaofangMapper.deleteBizXiaofangByField1(field1);
    }
}
